<?php
/**
 * Created by PhpStorm.
 * User: qttx
 * Date: 2019/5/30
 * Time: 13:56
 */
namespace app\api\controller;


use app\api\model\PhoneModel;

class Phoneservice extends BaseController
{
    public function __construct()
    {
        parent::__construct();
        $this->phone = new PhoneModel();
    }

    /**手机卡充值--添加**/
    public function phone_add()
    {
        $add['uid'] = $this->uid;
		//$add['uid'] = request()->post('uid');
		$add['phone'] = request()->post('phone');
        $add['money'] = request()->post('money');
        $add['createtime'] = time();
        $phone_add = $this->phone->phone_add($add);

        if($phone_add)
        {
            AjaxReturn('1','成功');
        }else{
            AjaxReturn('0','失败');
        }
    }
}